<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-bind</title>
    <script src="../js/vue.js"></script>
</head>
<body>
    <!--
         v-bind可以用来动态绑定数据 
         v-bind的语法糖（简写）为:
    -->
    <div id="app">
        <a v-bind:href="link" target="_blank">菜鸟教程</a>
        <img v-bind:src="userURL" alt="">
        <a :href="link" target="_blank">菜鸟教程</a>
    </div>
    <script >
        let vm = new Vue({
            el:"#app",
            data:{
                userURL:'/day03/images/微信图片_20210203111654.png',
                link:'https://www.runoob.com/java/java-tutorial.html'
            }
        })
    </script>
</body>
</html>